<?php
namespace Mp\Service;
use Mp\Service\Common\Javascript;

class CommonService {

	protected  $model ;


	public function __call($class,$args){
		$className = 'Mp\\Service\\Common\\'.ucfirst($class);

		if(!class_exists($className) || !method_exists($className, 'render')){
			$this->error("Invalid Extension [$class]");
		}

		return call_user_func([resolve($className),'render'],$args);

	}



}

?>